using System.Collections.Generic;
using JetBrains.Annotations;
using Microsoft.EntityFrameworkCore.Query;

namespace Microsoft.EntityFrameworkCore.Dm.Query.Internal;

public class DmMemberTranslatorProvider : RelationalMemberTranslatorProvider
{
	public DmMemberTranslatorProvider([NotNull] RelationalMemberTranslatorProviderDependencies dependencies)
		: base(dependencies)
	{
		ISqlExpressionFactory sqlExpressionFactory = dependencies.SqlExpressionFactory;
		this.AddTranslators(new IMemberTranslator[]
		{
				new DmDateTimeMemberTranslator(sqlExpressionFactory),
				new DmStringMemberTranslator(sqlExpressionFactory)
		});
	}
}
